import BaseModel from '@/common/baseModelV3.js'
import BaseObject from '@/common/baseObject.js'
export default class ImageModel extends BaseModel {
	constructor(source, func) {
		super(source, func)
	}
	objecrelation(source, func) {
		var funcModel = func()
		super.funcjudge(funcModel.goods)
		return funcModel.goods(source)
	}
	objectProcessor(source, func) {
		return new Goods(source)
	}
}

class Goods extends BaseObject {
	id=0;
	title="";
	price=0;
	image_url="";
	constructor(source) {
		super()
		super.objectSetValue(source)
		super.setImageKeys(['image_url'])
	}
}
